package com.fc.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author yangxy
 * @Date Create in 9:05 2018-3-23
 * @Description:
 * @Modified by:
 */

@RestController
class HelloController {

    @Value("${spring.datasource.username}")
    private String username;

    @RequestMapping("/hello")
    public String from() {
        return this.username;
    }
}

